<%@ Page Language="C#" MasterPageFile="gallery.master" AutoEventWireup="true" CodeFile="ViewAlbums.aspx.cs"
  Inherits="admin_viewalbums" Title="Albums" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">
  <h1>
    Albums
  </h1>
  <asp:DataList ID="AlbumContent" runat="Server" CssClass="albumphotos" RepeatColumns="1"
    RepeatDirection="Horizontal" EnableViewState="False" AlternatingItemStyle-BorderColor="lightgray">
    <HeaderTemplate>
      <table width="100%">
    </HeaderTemplate>
    <ItemTemplate>
      <tr>
        <td>
          <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?AlbumId=" %><%# DataBinder.Eval(Container.DataItem, "Id") %>">
            <img src="<%# ((BlogEngine.Core.Photo) DataBinder.Eval(Container.DataItem, "FirstPhoto")).GetSizedPhotoURL(150) %>"
              alt="<%# DataBinder.Eval(Container.DataItem, "Title")%>" />
          </a>
        </td>
        <td>
          <b>Title:</b>
          <%# DataBinder.Eval(Container.DataItem, "Title")%>
          <br />
          <br />
          Contains
          <%# DataBinder.Eval(Container.DataItem, "Count")%>
          Photo(s)
          <br />
          <br />
          <div style="width: 200px;">
            <div style="float: right;">
              <img src="icons/folder_go.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                View Album</a><br />
              <img src="icons/folder_delete.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/DeleteAlbum.aspx?AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Delete Album</a><br />
              <img src="icons/folder_edit.png" align="absmiddle" />  
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/EditAlbum.aspx?AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Edit Album</a>
            </div>
            <div style="float: left;">
              <img src="icons/resultset_top.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewAlbums.aspx?Action=Top&AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Top</a><br />
              <img src="icons/resultset_up.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewAlbums.aspx?Action=Up&AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Up</a><br />
              <img src="icons/resultset_down.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewAlbums.aspx?Action=Down&AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Down</a><br />
              <img src="icons/resultset_buttom.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewAlbums.aspx?Action=Bottom&AlbumId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Bottom</a>
            </div>
          </div>
        </td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      </table>
    </FooterTemplate>
  </asp:DataList>
</asp:Content>
